<?php
    $mytag_name = array();
    foreach ($details->tags as $tag)
        $mytag_name[] = $tag->name;


    if (!empty($mytag_name))
        $mytag_name = implode(', ', $mytag_name);
    else
        $mytag_name = "";


    $weekday = array('Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday');
    $startDays = explode(',', $details->startWeekDayEN);
    $enableDays = array();

    foreach ($startDays as $day)
        $enableDays[] = array_search($day, $weekday);
?>

<script type="text/javascript">

    var enableDays = new Array();

<?php foreach ($enableDays as $day): ?>
            enableDays.push(<?= $day ?>);
    <?php endforeach; ?>

</script>
<div id="changedates_body">

    <div class="check">

        <div id="payment_insurance">

            <div class="payment calculation2">
                <?php
                    $this->load->view('parts/totalExcursions', array(
                        'service_total' => $reservation->form->service_price,
                        'total' => $reservation->form->total_price,
                        'service_name' => $reservation->name
                    ))
                ?>
            </div>
        </div>

        <div class="sec">

            <div id="prices_tab" class="tabdiv clearfix">

                <div class="pull-left oneborder">

                    <form class="form-horizontal" id="prices_form" action="<?= lang_url('excursions/reservation') ?>" method="get">

                        <input class="hidden" type="text" name="exc_id" id="exc_id" value="<?= $_GET['exc_id'] ?>">

                        <?php
                            $this->load->view('parts/pricesformExcursions', array())
                        ?>

                    </form>

                </div>



            </div><!--/prices_tab-->

        </div>

        <div class="hold_booknow">
            <input type="button" class="booknow " value="<?= lang('res.book_now'); ?>" id="book_now_input">  
        </div><!-- /booknow-->

    </div>

</div>
<script>
    preview = false;
</script>
